﻿namespace AnyOffice.Model
{
    using System;

    public class SmsData
    {
        protected string _content = string.Empty;
        protected string _fromId = string.Empty;
        protected int _relateId;
        protected bool _remindFlag = true;
        protected DateTime _sendTime = DateTime.Now;
        protected int _smsId = -1;
        protected object _toDeptList;
        protected object _toId;
        protected object _toIdList;
        protected object _toPrivList;
        protected int _type;
        protected object _url;

        public string Content
        {
            get
            {
                return this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public string FromId
        {
            get
            {
                return this._fromId;
            }
            set
            {
                this._fromId = value;
            }
        }

        public int RelateId
        {
            get
            {
                return this._relateId;
            }
            set
            {
                this._relateId = value;
            }
        }

        public bool RemindFlag
        {
            get
            {
                return this._remindFlag;
            }
            set
            {
                this._remindFlag = value;
            }
        }

        public DateTime SendTime
        {
            get
            {
                return this._sendTime;
            }
            set
            {
                this._sendTime = value;
            }
        }

        public int SmsId
        {
            get
            {
                return this._smsId;
            }
            set
            {
                this._smsId = value;
            }
        }

        public string ToDeptList
        {
            get
            {
                return (string) this._toDeptList;
            }
            set
            {
                this._toDeptList = value;
            }
        }

        public bool ToDeptListIsNull
        {
            get
            {
                return (this._toDeptList == null);
            }
            set
            {
                if (value)
                {
                    this._toDeptList = null;
                }
            }
        }

        public string ToId
        {
            get
            {
                return (string) this._toId;
            }
            set
            {
                this._toId = value;
            }
        }

        public bool ToIdIsNull
        {
            get
            {
                return (this._toId == null);
            }
            set
            {
                if (value)
                {
                    this._toId = null;
                }
            }
        }

        public string ToIdList
        {
            get
            {
                return (string) this._toIdList;
            }
            set
            {
                this._toIdList = value;
            }
        }

        public bool ToIdListIsNull
        {
            get
            {
                return (this._toIdList == null);
            }
            set
            {
                if (value)
                {
                    this._toIdList = null;
                }
            }
        }

        public string ToPrivList
        {
            get
            {
                return (string) this._toPrivList;
            }
            set
            {
                this._toPrivList = value;
            }
        }

        public bool ToPrivListIsNull
        {
            get
            {
                return (this._toPrivList == null);
            }
            set
            {
                if (value)
                {
                    this._toPrivList = null;
                }
            }
        }

        public int Type
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }

        public string Url
        {
            get
            {
                return (string) this._url;
            }
            set
            {
                this._url = value;
            }
        }

        public bool UrlIsNull
        {
            get
            {
                return (this._url == null);
            }
            set
            {
                if (value)
                {
                    this._url = null;
                }
            }
        }
    }
}

